<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*" %>
    <%@ page import="domain.Search2" %>
<%

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>标题</title>        
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">    
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="This is my page">
 </head>
 <body>
 
 <%
 List<Search2> customers2=(List<Search2> ) request.getAttribute("customers2");
 String songpath="/music/";
 String songname="";
 String songtype="";
 for(Search2 customer2:customers2){
	 songname=customer2.getSongname();
	 songtype=customer2.getSongtype();
	 %>
	 <table>
	 
	 <tr>
	 <td>SONGNAME</td>
	 <td>SINGERNAME</td>
	 </tr>
	 
	 
	 <tr>
	 <td><%= songname %></td>
	 <td><%= customer2.getSongsinger() %></td>
	<td>
	<embed src="<%= (path+songpath+songname+"."+songtype) %>">
	</td>
	 </tr>
	 </table>
	 <%
 }
 %>
 
 </body>
</html>